package tjs.study.notes.dotest.disruptor.apiLog.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.atomic.AtomicLong;

/**
 * Created by Nicky.Tang on 2021/10/31 4:48 下午
 *
 * @since 02.12.10
 */
@RestController
@RequestMapping("apiLog")
public class ApiLogTestController {
    private static AtomicLong ATOMIC_LONG = new AtomicLong();

    @RequestMapping(path = "/test", method = RequestMethod.GET)
    public String pay() {
        return "inc: " + ATOMIC_LONG.incrementAndGet();
    }


}
